package com.hkd.product_service.api;

import com.hkd.common.api.ApiResponse;
import com.hkd.product_service.api.dto.InsertBrandDTO;
import com.hkd.product_service.api.dto.InsertProductDTO;
import com.hkd.product_service.api.fallback.ProductInfoServiceImplFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author HKD
 * @date 2022/9/17 21:51
 */
@FeignClient(name = "product-service",
        contextId = "ProductInfoService",
        fallbackFactory = ProductInfoServiceImplFallback.class
)
public interface ProductInfoService {
    @PostMapping("insertProduct")
    ApiResponse insertProduct(@RequestParam("curUserId") String curUserId,@RequestBody InsertProductDTO param);


}
